package com.code.day16.c_thread;

public class Test {
    public static void main(String[] args) {
        BaoZiPu bzp = new BaoZiPu();
        Product p = new Product(bzp);
        Consumer c = new Consumer(bzp);

        new Thread(p).start();
        new Thread(p).start();
        new Thread(p).start();

        new Thread(c).start();
        new Thread(c).start();
        new Thread(c).start();
    }
}
